﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SaleManagement.Entity;
using System.Linq.Expressions;

namespace SaleManagement.Repository.Interfaces
{
   public interface IOrderDetailRepository:IDisposable
    {
        IQueryable<OrderDetail> All { get; }
        IQueryable<OrderDetail> AllIncluding(params Expression<Func<OrderDetail, object>>[] includeProperties);
        OrderDetail Find(int id);
        void InsertOrUpdate(OrderDetail entity);
        void Delete(int id);
        void Save();
    }
}
